package com.example.animal;

import java.time.LocalDate;

/**
 * 猫类，继承自哺乳动物类，实现行走接口
 */
public class Cat extends Mammal implements Walkable {
    /**
     * 构造函数
     * @param name 动物名称
     * @param speciesName 物种名称
     * @param birthDate 出生日期
     * @param color 颜色
     * @param weight 体重
     * @param gender 性别
     * @param temperatureType 体温类型
     * @param isViviparous 是否胎生
     */
    public Cat(String name, String speciesName, LocalDate birthDate, 
               String color, double weight, Gender gender, TemperatureRegulation temperatureType,
               boolean isViviparous) {
        super(name, speciesName, birthDate, color, weight, gender, temperatureType, isViviparous);
    }

    @Override
    public void breathe() {
        System.out.println(name + " " + speciesName + "用肺呼吸");
    }

    @Override
    public void eat() {
        System.out.println(name + " " + speciesName + "进食");
    }

    @Override
    public void walk() {
        System.out.println(name + " " + speciesName + "在行走");
    }
}
